import server from "../util/request.js";

export function queryAll(){
    return server({
        url:"/user2",
        method:"GET"
    })
}

export function queryById(id){
    return server({
        url:`/user2/${id}`,
        method:"GET",
        id:id
    })
}

export function update(data){
    return server({
        url:`/user2`,
        method:"PUT",
        data:data
    })
}

export function deleteById(id){
    return server({
        url:`/user2/${id}`,
        method:"DELETE",
        id:id
    })
}
